//
//  JGRequestHelper.h
//  JGRider
//
//  Created by 单启志 on 2018/3/8.
//  Copyright © 2018年 ffq. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface JGRequestHelper : NSObject
+(instancetype)share;

/**
 没有默认提示语

 @param params <#params description#>
 @param className <#className description#>
 @param hud <#hud description#>
 @param view <#view description#>
 @param invokeSuccessBlock <#invokeSuccessBlock description#>
 @param invokeFaileBlock <#invokeFaileBlock description#>
 */
-(void)requestWithParams:(NSDictionary*)params requestApi:(Class)className hudMessage:(NSString*)hud view:(UIView*)view successBlock:(void(^)(id result))invokeSuccessBlock faileBlock:(void(^)(id error))invokeFaileBlock;

/**
 默认提示语为加载中...

 @param params <#params description#>
 @param class <#class description#>
 @param view <#view description#>
 @param invokeSuccessBlock <#invokeSuccessBlock description#>
 @param invokeFaileBlock <#invokeFaileBlock description#>
 */
-(void)requestWithParams:(NSDictionary*)params requestApi:(Class)class view:(UIView*)view successBlock:(void(^)(id result))invokeSuccessBlock faileBlock:(void(^)(id error))invokeFaileBlock;


/**
 没有MBProgarme提示框

 @param params <#params description#>
 @param class <#class description#>
 @param invokeSuccessBlock <#invokeSuccessBlock description#>
 @param invokeFaileBlock <#invokeFaileBlock description#>
 */
-(FQChainRequest *)requestWithParams:(NSDictionary*)params requestApi:(Class)className successBlock:(void(^)(id result))invokeSuccessBlock faileBlock:(void(^)(id error))invokeFaileBlock;
@end
